package com.fanshilz.flower2025.apps.admin.sysUser.req;

import com.fanshilz.flower2025.business.sys.sysUser.entity.SysUser;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
@AutoMapper(target = SysUser.class, reverseConvertGenerate = false)
public class SysUserSaveOrUpdateReq {

    private Long userId;

    @NotBlank
    private String userMobile;

    @NotBlank
    private String userEmail;

    @NotBlank
    private String nickName;

    @NotBlank
    private String userName;

    @NotBlank
    private String loginName;

    @NotEmpty
    private List<Long> userRoles;

    private String pwdTxt;

}
